﻿using B.S.XZYData.Domain.RBAC;
using B.S.XZYData.ErrorCode;
using MediatR;

namespace B.S.XZYData.Api.Wrter.Application.Command.Permission
{
    /// <summary>
    /// 权限新增命令层
    /// </summary>
    public class AddPermissionCommand : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; } = string.Empty;
        /// <summary>
        /// 权限路由
        /// </summary>
        public string? PermissionURL { get; set; }
        /// <summary>
        /// 父级权限
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 序号
        /// </summary>
        public int Number { get; set; }
    }
}
